﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 战棋模拟器
{
    class 爆爆机器人:Minion
    {
        public 爆爆机器人():base()
        {
            count = 1;
            Star = 2;
            Attack = 2;
            Health = 2;
            damage = 4;
            Race = race.mech;
        }





        public override void Deathrattle()
        {            
            for(int i = count;i>0;i--)
            {
                if (pool.next.TrueCount() <= 0)
                    return;
                Minion m = pool.next.RandomMinion();
                m.Getdamaged(damage);
                if (pool.board.Debug)
                {
                    Console.WriteLine("触发了{3}的亡语，对{0}方第{4}位{1}造成了{2}点伤害", pool.direction ? "下" : "上", m.Name, damage, Name, m.Place);
                }
            }
            
            base.Deathrattle();
        }


        public override Minion NewOne()
        {
            return new 爆爆机器人();
        }
    }


    class 爆爆机器人_金色 : 爆爆机器人
    {
        public 爆爆机器人_金色() : base()
        {
            Attack *= 2;
            Health *= 2;
            count *= 2;
            buff *= 2;
        }

        public override Minion NewOne()
        {
            return new 爆爆机器人_金色();
        }
    }
}
